PARSER=parser
DBUG=debug
H_SVER=http_server

.PHONY:all
all:$(PARSER) $(DBUG) $(H_SVER)

$(PARSER):parser.cc
	g++ -o $@ $^ -lboost_system -lboost_filesystem -std=c++11
$(DBUG):debug.cc
	g++ -o $@ $^ -lboost_system -ljsoncpp -std=c++11
$(H_SVER):http_server.cc
	g++ -o $@ $^ -lboost_system -lpthread -ljsoncpp -std=c++11

.PHONY:clean
clean:
	rm -f $(PARSER) $(DBUG) $(H_SVER)